<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>酒店信息详情</title>
<link rel="stylesheet" type="text/css" href="<s:url value='/resources/css/hotel/hoteldetail.css'/>" media="all" />
<script type="text/javascript" src="<s:url value='/resources/js/jquery/jquery-1.5.2.min.js'/>"></script> 
<script type="text/javascript" src="<s:url value='/resources/js/common/time.js'/>"></script> 
<script type="text/javascript">
var contextpath="<%=request.getContextPath()%>";
$(function(){
	$('.time').text((new Date()).pattern("yyyy-MM-dd EEE HH:mm:ss"));
	$('.time').createTime({format:'yyyy-MM-dd EEE HH:mm:ss'});
		//初始行程id输入框,设置为焦点
		$("#id_input").focus();
		
		//5秒检测一次input是否为焦点
		time=setInterval(function(){
			$("#id_input").focus();
		}, 5*1000);
		//二维码扫描结果的回车键
		$("#id_input").bind('keydown', function (e) {
            var key = e.which;
            if (key == 13) {
            	var planid=$(this).val();
            	sign(planid); 
            	$(this).val("");
            	//不再返回给浏览器
            	return false;
            }
        });
});
function hotelCommit(cardId){
	window.location.href=contextpath+"/hotel/guideHotelMark?hotelId=<s:property value='#request.place.id'/>&cardNum="+cardId+"";
}
function sign(planCode){
	window.location.href=contextpath+"/hotel/guideHotelMark?hotelId=<s:property value='#request.place.id'/>&tourCode="+planCode+"";
}
</script>
</head>
<body style="width: 1024px;height: 768px;">
	<div id="top">
		<div class="home"></div>
		<div class="sysname">现代旅游酒店系统</div>
		<div class="userText"></div>
		<div class="time">2013/5/26  星期一  17:52:00</div>
		<div class="clr"></div>
	</div>
	<div class="context">
		<div class="left">
			<div class="nav">
				<ul>
					<li class="nav_tit select"><div><img src="<s:url value="/resources/images/hotel/mark1.png" />" /><span class="li_tit">导游签到</span></div></li>
					<li class="nav_tit">
					<a style="text-decoration: none;" href="<s:url value='/hotel/loadHotelInformation.action'/>?hotelId=<s:property value='#request.place.id'/>">
					<div><img src="<s:url value="/resources/images/hotel/selecticons.png" />" /><span>查询</span></div></a></li>
				</ul>
			</div>
			<div class="intoHome">
				<a href=<s:url value='/hotel/loadHotelIndex'/>?hotelId=<s:property value="#request.place.id"/>><img src="<s:url value='/resources/images/aio/rhome.png'/>"/></a>
			</div>
		</div>
		<div class="right">
			<div class="riframe">
				<input id="id_input" type="text" class="" value="" style="border:0;color:#fff;">
				<div style="margin:250px 200px;">
					<img src="<s:url value="/resources/images/hotel/swipingCardselect.png" />"/>
				</div>
			</div>
		</div>
		<div class="clr"></div>
	</div>
	
	<div class="bottomCotent"><span style=" padding-right: 20px;">客户机:<s:property value="#request.place.id"/>　使用单位：<s:property value="#request.place.name"/></span></div>
</body>
</html>